package homework.day07.bean;

/**
 * @author ThinkBook
 */
public class Salesman extends Employee{
    private String name;
    private int BaseSalary;
    private int SalesCommissions;
    private double wages ;
    public Salesman(String name, String gender, String years, int BaseSalary,int SalesCommissions){
        super(name,gender,years);
        this.name = name;
        this.BaseSalary = BaseSalary;
        this.SalesCommissions = SalesCommissions;
    }
    @Override
    public void computeSalary(){
        wages = BaseSalary+SalesCommissions;
        System.out.println("销售员"+name+"本月工资为"+wages);
    }
}
